using System.ServiceModel;
using System.Collections.Generic;

namespace WCFDicing.ServiceContracts
{
    /// <summary>
    /// odpowiedz na prosbe o zalozenie nowego stolu
    /// </summary>
    [MessageContract]
    public class CreateRoomResponse
    {
        /// <summary>
        /// id zalozonej gry
        /// </summary>
        private System.Int32 GameIDField;

        /// <summary>
        /// konstruktor odpowiedzi
        /// </summary>
        /// <param name="ID">id zalozonej gry</param>
        public CreateRoomResponse(int ID)
        {
            GameIDField = ID;
        }

        /// <summary>
        /// get i set id zalozonej gry
        /// </summary>
        [MessageBodyMember(Order = 0)]
        public System.Int32 GameID
        {
            get { return GameIDField; }
            set { GameIDField = value; }
        }
    }
}


